CSHARP-797: Added MaxCommandSize, which is normally slightly larger than MaxDocumentSize.
CSHARP-797: Added an overload of WriteStartDocument that allows passing in the MaxDocumentSize of the embedded document.