Make HashCodePartitioner behave as expected