[DD-854] unified index handling

- uniform interfaces for index handling + temporal indices
- unit test for bug case