Strengthen LocalVar<T> tests
Add SharedVar<T> class