Corrected a bug in hashCode; values of primitive types cannot be promoted to Object because they get a different identity hash code every time.