Bernie Sanders is an American who was advocating against the Iraq War. He was clearly not culpable for it, and his causal role was to lower the probability that it would go ahead. This is an example of why it would then be wrong to blame "Americans" as a collective for the Iraq War. Bernie Sanders, a member of that collective, deserves either zero blame or negative blame (if that even exists).
To extend your example: Bernie Sanders as a citizen, and further a politician, acquires an amount of the collective responsibility for the countries actions in the Iraq War. Bernie Sanders as an activist has more than discharged that responsibility by actively countering it.
A citizen who has done nothing to mitigate or counter the actions is left only with the share of collective responsibility; however large or small that may be, it's real.
Collective punishment refers to the punishment communities en masse for the actions of individuals, that may be being harbored by some members of that community.
Just because something is done in a collective manner does not absolve the members of that collective from the outcome.