Fixing no-unused-var and no-redeclare (Fixes #310)

Fixes #310 This fixes both no-unused-var issue with arrays and line reporting for no-redeclare