Merge pull request #6 from edmorley/let-redeclaration

Fix "TypeError: redeclaration of variable params" after bug 1001090