Fixed recursive closure capture, now checks intermediate scopes for variable declaration
Merge pull request #605 from shamanas/master

Fixed recursive closure capture