fix bug in Collection::dropIndexes that affects partitioned collections with secondary indexes