Ensures scopes is inside lambdas

Updates to pointy lambdas and 1.9 style hashes.
Use stabby lambdas
Merge pull request #159 from Oktavilla/modernize-scopes

Modernize scopes