fixed bug where lambdas were not using the correct context; now passes closure tests.