[fixes issue #199] Add serialization for ByteBuffers

Serializes the byte buffer data, limit, and position.