fix bug causing segmentation fault, if top level segment has the same name as partition; replace error-prone referenced_by ConfigObject method by template analog, that does extra try_cat check eliminating non-segment and non-resource-set parents
fix bug causing segmentation fault, if top level segment has the same name as partition; replace error-prone referenced_by ConfigObject method by template analog, that does extra try_cat check eliminating non-segment and non-resource-set parents