Fixes #5723 - Show hostgroups inherited via config groups in puppetclass

also `hostgroups | Hostgroup.find(ids)` can be used instead of `+` and then `unique` but I'm not sure which is better