Mod handles more simplification

While still trying to keep evaluation fast, Mod will now
handle more now in removing a gcd from the terms.