Add GlobalVariableModel to declare global variables.
Global variables are treated as input declarations when they are at least used once in the script.
Add parent to BasicModel, which can be used to refer to a common model.
A common model holds variables common to multiple models, like the global variable model.