You can't actually allocate memory for arrays yourself, you may notice. It always needs to be returned by a function to start out. This is because the scripting system sits atop the code proper, which is what is managing memory.You can search for the talmud project, which gives you a little more control over your own arrays. It may allow you to hack together multi-dimensional arrays.