Fix memory leak in Bson::document::set() methods.