Add BSON serialization.