Fixed instantiation for indexer as a module that wraps addIndex/addSecondaryIndex.