Fix BSON serialization of ubyte[] arrays.