:: SetMacros[widget]
<<widget 'setinitpush'>>
    <<set _var = State.getVar(_args[0])>>
    <<if typeof _var !== "array">>
        <<run State.setVar(_args[0],[])>>
        <<set _length = 0>>
    <<else>>
        <<set _length = _var.length>>
    <</if>>
    <<run State.setVar(_args[0]+"["+_length+"]",_args[1])>>
<</widget>>
