Added overloaded methods for ensureIndex.