Add support for arrays in responses