- Allow 'BSONObj::LargeSizeTrait' to Document::toBsonWithMetadata() method.
- Make Document::toBsonWithMetadata() and Document::fromBsonWithMetadata() use 'trivial' conversion. In other words, documents created with myDoc.fromBsonWithMetadata(otherDocument.toBsonWithMetadata()) and not modified afterwarrds should re-use the storage and not serialize again when myDoc.toBsonWithMetadata() is called.
- Avoid unnecessary serializations in PlanExecutorPipeline and in change_stream_split_event::splitChangeEvent.