bugfix: output modules with parameters with multiple passing modes could cause strange behaviour including aborts

This was due to the fact that the action module only preserved and
processed the last set passing mode. Note that this was not a problem
for the plugins provided by the rsyslog git: none of them uses different
passing modes.
Thanks to Tomas Heinrich for providing a very detailled bug report.
Merge branch 'v7-stable-act-tpl-passing-mode' into v7-stable

Conflicts:
	ChangeLog
Merge branch 'v7-stable' into v8-stable

Conflicts:
	action.c

I needed to adopt the v7 changes to the new non-batch inner
processing. This may have some bug potential.
fix small memleak in action()

This was introduced by a recent patch. Not present in any
released version.
Merge branch 'v7-stable' into v8-stable