Adds test for shadowed this variables. Closes #361.
Merge #536 r=@tcr: Adds test for shadowed this variables. Closes #361.