:: InitMacros[widget]
<<widget 'init_arr'>>
    <<log `"INIT_ARR: "+_args[0]`>>
    <<if !Array.isArray(State.getVar(_args[0]))>>
        <<run State.setVar(_args[0],[])>>
    <</if>>
<</widget>>

<<widget 'init_obj'>>
    <<log `"INIT_OBJ: "+_args[0]`>>
    <<if !(State.getVar(_args[0]))>>
        <<run State.setVar(_args[0],{})>>
    <</if>>
<</widget>>
