tree-walk.c: make tree_entry_interesting() take an index