Encode a CBOR head (major type + argument) in its shortest form.
OutOfRange for a negative, fractional, or above-u64 argument.
OutOfRange
Encode a CBOR head (major type + argument) in its shortest form.