change [hexa]decimalInteger() helpers to parse and return buffers

Since the spec does not describe any upper limit for the integer types, buffers are used as the default parsed representation.
New *AsNumber() helpers are added that returns numbers and will throw when it cannot represent the integer with full precision.
use new attribute helpers in keyForSeqNo()

this fixes an issue where incorrect IV values were output when generating IVs from sequence numbers