Supporting arrays of objects in definitions