Fixed ballot numbers to be actually 64bit

They were encoded using msgpack_pack_unsigned_int, which resulted in
loss of data bits. Also used 64bit encoding for all other 64bit values.