made some IndexedCorpus methods const