fix(scope): locals work with scope

Close #80

NOTE: this must have gotten fixed by other commit. 
Adding test only to prevent regression.