added support for defining indexes using Collection.ensureIndex({...})