Added support for arrays of objects.