bugfix: mishandling of input modules not supporting new input instances

If they did not support this, accidently the output module part of the
module union was written, leading to unpredictable results. Note: all
core modules do support this interface, but some contributed or very
old ones do not.
bugfix: double-free when ruleset() parser parameters were used

While unlikely, this could cause stability issues even after the
config phase.
Merge branch 'v7-stable' into v8-stable