fixes #3999 - refactor DRY implementation of "nested label" for objects with ancestry
fixes #3939 - add option to 'inherit from parent' for hostgroup attributes