ENH: changes to _dtypes_from_scalar