patch for #1151

This will overwrite the string value with the array that follows it. e.g:

http://example.com/?foo=bar&foo[]=baz becomes `{ foo: ["baz"] }`