Penalizing parties for class stacking isn't the way to go. You should be rewarded for some sort of diversity through party wide buffs (which already exist to some point, but not noticeable enough to matter).