Use is_scalar rather than ctype_ for integer consistency.