Added support for serializing a ByteBuffer that is assumed to contain valid BSON and deserializing a BSON document into a ByteBuffer.