Let serializeToBson take an optional buffer parameter to avoid allocations. See #633.
First round of eliminating allocations in the MongoDB driver. See #633.

The code is only mildly tested so far.