BSON writer work in progress.