Unify hash() values for numeric types