Add support for properly processing arrays of objects