Implement efficient hashCode for OffsetMaps