Add support of array parameters

According to the API documentation array parameters must be encoded like this:
    '&image_size[]=3&image_size[]=4'

The fix seems to work fine and to not introduce regression. But I have not ran the test suite nor implemented a test case.