Support for static variables.

Static variables are local to a scope, but unlike DIMmed variables they are not destroyed when the scope is exited.

For example, this allows information in a UDF to be preserved.