Issue #1362: Make sure 'let' variables are not treated as globals on assignment