* Add sanity checks to getPath and findAncestor so that we don't hang if an accessible returns itself as its own parent (#6, #7).