CLN: moved some functionality from series._sanitize to com._dtype_from_scalar