generalizes AbilityTemplate to GroupedTraitTemplate