Expand CScriptVariable to have a union of potential values instead of an uint32_t to cast...
Add some helper functions for dealing with local variables.