Updated routines to handle complex numbers with integer components.