Array Returns Class In Array, Not Container Type

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

See Steps to Reproduce

Steps to Reproduce

game_manager := class(creative_device):
     var MyArray : []agent=array{}

     OnBegin<override>()<suspends>:void={}

     ReturnArray():[]agent=
          return MyArray

Results in:

var (/localhost/MapName/verse_device:)MyArray:agent

Expected Result

Should return an array of agent
agent
Which I would then be able to get index items out of like I have been doing the last few weeks with:

MoverControls:=GetMoverControls(Player,Trajectory(2))

GetMoverControls(Player: player, Xform:transform): []creative_prop=
        var MoverControls:[]creative_prop=array{}
        if(Prop:=SpawnProp(AbilityFX,Xform.Translation,Xform.Rotation)(0)?):
            set MoverControls += array{Prop}
            Print("FXMoverControlSet")
        Mover:=ProjectileCollision.GetMover(Player)
        if: 
            Mover.IsValid[]
            Mover.TeleportTo[Xform]
        then:
            set MoverControls+=array{Mover}
            Print("AbilityEffectMoverControlSet")
        return MoverControls

Observed Result

Can’t help but feel like this is a very poorly explained implication of 28.10 patch notes, but perhaps something else so I’ll hold judgement until I hear back. If you can please at least let me know if this is an actual bug or not that would be very very much appreciated.

Platform(s)

PC