fix use-after-free in bson type tests
fix use-after-free in bson type tests

paulmelnikow/libbson,paulmelnikow/libbson,mongodb/libbson,alexeyvo/libbson,paulmelnikow/libbson,rcsanchez97/libbson,mapr/libbson,mapr/libbson,paulmelnikow/libbson,alexeyvo/libbson,ajdavis/libbson,bjori/libbson,paulmelnikow/libbson,Convey-Compliance/libbson,rcsanchez97/libbson,bjori/libbson,alexeyvo/libbson,Convey-Compliance/libbson,mongodb/libbson,mapr/libbson,Convey-Compliance/libbson,rcsanchez97/libbson,bjori/libbson,ajdavis/libbson,ajdavis/libbson,mongodb/libbson