Store this-values and arguments in immutable locals in codegen.
Merge pull request #2701 from Ms2ger/mut-codegen

Store this-values and arguments in immutable locals in codegen.