Update the setting of environment variables from the OctopusParameter se...

...t to tak account of arrays in Octopus 2