Added check on QueryFailure bit in GetMoreOperation, since it does get set in some situations.
Casting "n" to Number instead of Double for count command, since the server is inconsistent in what it returns (mongos returns Int32, mongod Double)