Alright, that was a quick one... writing "most of the variables are global" got me thinking
The variables are not actually global (as in "global_variable") but just outside of a function- or procedure body. Is there any documentation what kind of limitations apply for those variables?