Fix bug in varint packing that caused 0s to throw an exception