NFC: Make `WarningGroupBehaviorRule` and `WarningGroupBehaviorRule` reusable with other value types.
This is a preliminary refactoring to make it easier to add the `-Waudit <group>` switch, which applies to warning groups just like `-Werror <group>` and `-Wwarning <group>`, but is independent of those options.