trying to be more consistent to allocate and deallocate bson
Merge branch 'null_bson'