TreeDBIndexer allowing parameterized TreeDB instance.