Scope fix for accessors
Fixes #148
Added test for duplicate variables in different accessors
Merge pull request #150 from DickvdBrink/scopefix-accessor

Scope fix for  accessors