Note that System.setGlobal/getGlobal do not really create global variables as much as global storage by allowing you to store string values to be restored later. Rusty Fobe has posted some utilities in the files section that allow you save/reload array/object structures.