fixed a bug caused by querystrings with an array in it

querystrings are now checked for arrays and handled properly:
e.g. http://www.example.com/?array[key]=value equals http://www.example.com/?array%5Bkey%5D=value