Update LongHash to work like BytesRefHash