Bugfix/issue 367 local var index decl

All I did was extend the test case to validate that the issue was already fixed on hotfix/v2.0.2.