Make JP's changes to other MongoOutputFormat and MongoRecordWriter class...

...es to these ones too.