Function context

Can you set an array in a function context context.set("Test[0]",true) for example?

Have you tried? it should work fine.

yes, tried it and got weird results, evidently need to investigate further

If you explain then we could tell you why.
If you
on an undefined array an array with 7 elements would be created
Any undefined element bellow index 6, would become a null value element.

to circle back, turns out lots of things went wonky to be technical about it. Did a system reboot and things work now. This pi has always been a little touchy

(Gotta love them Gremlins that sneak into your computer and do naughty things.)