tests: add failing k=0 test for indexOf
iterator: fix bad index if k=0
0.0.7