ensure w=0 can't be used with j=1
clean up WriteResult assertion code

Drops temporary variables and fixes a return code.
fix maxMessageSizeBytes

Default should be set based on maxBsonObjectSize.

Also fixes a bug where the parameter wasn't being checked correctly.
fix comment typo