fixed tree_getByIndex(Tree,int): passes tests now