Add an array based overload of MongoCollection.ensureIndex. Fixes #824.