Bugfix: master dependency 'type' can be 'root' as well as 'master', depending on traversal order