Complex dynamics and invariant forms mod p