UPDATE:
After some additional digging and testing, it looks like the logic pushing ancestors down works fine.
When I removed and re-added a higher-level parent link, both ancestor branches were filled in correctly on the grandchild location.
So the result depends on the order the hierarchy is built.
------------------------------
Dirkjan van Rooy
Naviam
------------------------------