To save the global vars to an array you can set the value for each index in the array, like that:
Array.SetValue at X (0) = var1;
Array.SetValue at X (1) = var 2;
etc.....
WebStorage only save strings(text), so you can do something like that:
for(0 , array.length-1)
Webstorage.SetKey > "key"+loopindex > array[loopindex] //I'm not sure what's the correct action..use the one for saving..I'm on a mac now, can't check it.