Reads a bounded unsigned varint. One-byte values stay inline at the call site.
read_varint :: (r: *Reader) -> u64