Fix scope error
Fixes part of #138
Added test for scope issue #138
Merge pull request #149 from DickvdBrink/scope-error

Fix scope error
A catch clause with typedefinition isn't supported by TypeScript
Fixes #145
Merge pull request #151 from DickvdBrink/typedef-error

A catch clause with typedefinition isn't supported by TypeScript
Scope fix for accessors
Fixes #148
Added test for duplicate variables in different accessors