Redesigned toNumber/fromNumber API of ByteVector