Extended urlParameters method for dealing with arrays and dictionaries