fixed urlencode(),urldecode() position for array. also added test for nested array