fixes #6267 - singularize of HostClass and HostgroupClass is wrong
fixes #4181 - API V2 return object for POST/PUT/DELETE should *not* include root node