feature: support converting objects to arrays