Backport of 'Fixed issue #62. Handling eta-expansion correctly to allow mocks to be declared as `var`'
Merge pull request #67 from pawel-wiejacha/issue_62_fix_for_2.10

Fixed issue #62. Handling eta-expansion correctly to allow mocks to be declared as `var`