TreePointerTest: add traversal tests as well

Verify that traversal stops at the first token resolver which returns null.
Verify that when a missing node is specified, it is returned on .path().
TreePointer: make it implement Iterable