Fix for PROV-462: Use more robust way to figure out hierarchy root in methods that generate dynamic type navigation parts