Fix serialization of long buckets: values can be negative which is not supported by read/writeVLong.