Semicontinuity Theorems for Holomorphic and CR Automorphism Groups