Implement SameValueZero and HashZero