Very well, I'll answer my own question. Unlike other variables in the scripting tool, the array length needs to be declared. So, clumsily, you can declare an array like so:
1. Make an int variable called Q, make it an array
2. Set Q= new int[6]
3. Set Q[0]=1
That creates a six member array like so {1,0,0,0,0,0}