Added var test.
Added simple mutable local variables implemented using refs.
Self-review, plus test fix.
More test fixing.