Threads: new Variable data structure

for refactoring upvar references, not yet used anywhere