[POC] Class based indexes

Isn't it preferable to manage `self.options['indexes']` as a set? Then you avoid any bugs of including-indexes-twice.