fix bug with array into params

array `colors['red', 'green']` must convert to
`colors[]=red&colors[]=green` but not `colors=red&colors=green`