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

Benchmarking seems to agree with you: https://gist.github.com/tbrisker/a83ae885ad50fb7151a9