HCOLL-256 Fixed a bug in CharArrayMarshaller and made some other marshallers more robust