Coerce complex values and fix print method input bug with factors