Closure type checking fix
Merge pull request #71 from nimbol/master

Closure type checking fix