Fix build-failure with small-oplog tests

The theory here is that the test exited with writes still in flight and the
dbhash was executed on the master and the slave at different logical points
in time.
SERVER-6665 Add test to ensure that you can auth a RS connection to a RS with no primary
SERVER-13176 suppress legacy dup-key error codes when down/upconverting in mongos write cmds
SERVER-13214 Temporarily restore indexbg*.js test to use legacy writes
SERVER-13192 Fix sorting in show dbs shell helper
SERVER-12901 make test pause maxSyncSourceLagSecs
SERVER-13212 increase number of indexed solutions considered by the query planner
SERVER-13184 limit number of enumerated plans for an OR
SERVER-13184 Add simple logical rewrite+tests
SERVER-13184 don't forget to hold on to bsonobj in test
SERVER-13032 record write errors on failures of shards and lack of progress

Dedicated mongos error code indicating partial results
SERVER-12949 Restore intermediate in-memory reduces, which are used to
keep the memory occupied by map/reduce small and spill extra large results
to disk.

Also adds a JS unit test to ensure this behaviour doesn't change
accidentally.
SERVER-13068 remove other occurance of replset last message
SERVER-12977 disallow empty write batches

Also fix shell batch processing to avoid extra empty batches.
Remove nYields from explain output in repair.js
SERVER-13207 Unordered batch writes to a shard with version mismatch can trigger dassert at mongos
SERVER-13208: dropDups should be ignored for index comparison