Returns a path through index. Like Kotlin's indexed list access, reading the path throws IndexOutOfBoundsException when the root has no element at that index.