Add support for arrays in response