added auto type casting to getVar, and special exception function
variable scripts to accept dictionaries for fast iteration