Document hasAncestor. Fixes #18.