Can I push something to a so-far unused variable to create an array of one element?
Yes, there is a push command.
Can I push something to a scalar variable to make it an array of two elements?
I hadn't thought of that. You can now. The previous behavior was to hang the program without a helpful error message. So, changing that is not going to break anything.
Can I use setelem on a so-far unused variable?
Yes. You can now also use set. See the link above.
I recently added better support for arrays. See this comment for details:
https://www.chessvariants.com/index/listcomments.php?id=39825
Set it to an empty pair of parentheses, like so:
Yes, there is a push command.
I hadn't thought of that. You can now. The previous behavior was to hang the program without a helpful error message. So, changing that is not going to break anything.
Yes. You can now also use set. See the link above.