Expose full ancestor_ids instead of just root/parent

* Also gives depth information as ancestor_ids.length