Bug 1110892 - fixed array handling issues on query params

When we have multiple values for the same query param,
not all the code was creating an array for the values.  The deparam was
just giving you the last one in the list.