fixed urlencode(),urldecode() position to make it work with arrays. Also added test for nested array with whitespace