Fixes call function scope.
Merge pull request #1779 from yurydelendik/avm1scope

Fixes call function scope.