I think the problem is that the appgroups classes need a $(name)_ prefix; since Host1 did set the GrpZ class, appgroups still sees the GrpZ (global) class defined even when processing Host2, which doesn't define this class.  Is there a way for appgroups to limit the scope of its classes, other than adding such a prefix ?