You could build your own array with text from the array before passing it.
global text arrayText = ""
-- set arrayText to "["
array: for each x
-- add array.curvalue&"," to arrayText
-- add "]" to arrayText
Then just pass arrayText when you call some js.
You could also build a 1d array from it after passing it, or even just use it directly. I mean say you did:
browser: execute js "myfunction("&array.asJSON&")"
then in that function you'd access stuff like this:
// access value at x=22
// access value at x=3, y=2
// access value at x=13, y=66, z=5
Notice it's always a 3d array.
If you want to convert the 3d array to a 3d one then just go for it. It's the standard type of thing to do when writing code.