refactor: replace ModRuntimeBase with Factory pattern
Remove global mutable static moder; introduce ModFactory, RuntimeModBase, and per-instance modulus. Add init_from/wrap/raw for normalization, inv/power as instance methods returning Mod.
Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com