Fix for issue 2736.

Arrays in query strings are now preserved. For example ?cat[]=5&cat[]=10&cat[]=20