Include an object's type when calculating its hash code.