fixes #5631 - API v2 - host and hostgroups show.json.rabl should show all puppetclasses in child node

currently it only shows what is in host_classes or hostgroup_classes and not what is inherited or in config_groups