Allow setting an array of header values in the response

Make setting multiple header values using an array work as expected.
If the header value is an array, coerce the values to strings instead
of the entire array.

Fixes #1419.
Merge pull request #1477 from gmethvin/set_array

Allow setting an array of header values in the response