fixes #2319 make HostClass and HostgroupClass unique puppetclass_id by s...

...cope