Variable watching in IntegrityVariables trans.

Watching local and global variable types using global scope.
Added some simple templates.