Fix binary encoding of negative 64-bit longs. May need further work, and work on decoding.