Allowing typeName to specify an array in the yaml configuration, and fixing a bug in output writer specification

We have a couple of cases where we need to put multiple elements into a typeName specification from the yaml configuration.

Also fixed a bug where the script mutated the global output writer specification instead of returning a fresh copy.