Remove redundant calls to CFTreeGetParent
Fix (and now test) index path generation

Index paths were generated in reverse order.