change signature for reverse_endian from Number to Integer; enable reverse_endian on BigInts
add to_varint