correct var declarations with a var in front of them
auto declare entities mentioned within arc spanning arcs (issue #78)