HCOLL-211 Add BytesMarshaller and improve handling of invalid sizes.