I recently spent a decent amount of time trying to troubleshoot why my AppIntents were sometimes failing without any reason and sometimes working.
My specific goal is to work with a collection of results that come back from running the intent in Shortcuts.
What I noticed, is that due to the fact [Element] seems to become Element , it means that if you attempt to trigger a command that would concat the values, it will cause an error since you have Element [Element, Element] Element etc rather than [Element] [Element, Element] [Element] as expected.
As an example, I am trying to use Choose From List on the result from my shortcut.  It works beautifully well even for a collection of results as long as none of the results have a single element.
As example, the shortcut is returning an entity which also nests entities. This works as expected so-long as my entity results all have more than 1 element.
So say I run an action:
Get Home Locations - Zones
The result is HomeLocationAppEntity where each zone has rooms array.
I get back the following:
- Indoor - Rooms [Living Room, Main Bed, Main Bath, ...]
 - Outdoor - Rooms [Pool, Front Yard]
 - Occupancy Aware - Rooms [Main Bath]
 
In the case above, if I attempt to get the Included Rooms value on the total result above, a fatal error occurs with a message There was a problem running the shortcut.
If I change it so if a count is ever 1, I will just add the same entity twice so that none of the results are [Element] so they will be at least 2 rooms wide, then it works (albeit duplicates).
struct HomeLocationAppEntity: TransientAppEntity {
  static let typeDisplayRepresentation = TypeDisplayRepresentation(name: "Home Location")
   
  var id: String = ""
   
  @Property(title: "Name")
  var name: String
  @Property(title: "Unique Identifier")
  var uniqueIdentifier: String
   
  @Property(title: "Included Rooms (Homes & Zones Only)")
  var rooms: [HomeLocationAppEntity]
   
  @Property(title: "Included Zones (Homes Only)")
  var zones: [HomeLocationAppEntity]
   
  @Property(title: "Total Rooms (Homes and Zones Only)")
  var totalRooms: Int
   
  @Property(title: "Total Zones (Homes Only)")
  var totalZones: Int
   
  @Property(title: "Location Type")
  var locationType: HomeLocationTypeAppEnum
  var displayRepresentation: DisplayRepresentation {
    .init(
      title: "\(name)",
      subtitle: "\(locationType.rawValue.capitalized.replacingSuffix("s", with: ""))\(totalRooms > 0 ? " | \(totalRooms) Rooms" : "")\(totalZones > 0 ? " | \(totalZones) Zones" : "")",
      image: .init(
        systemName: "house.fill",
        tintColor: .init(named: "systemCyan")
      )
    )
  }
}