When we have nested generators and we want to get a reference to a thrown error
up the scope, we need to have a reference to the context `$ctx` variable of that generator.
This makes `$ctx` unique across each generated generator code. Fixes #70.
Merge pull request #71 from amasad/master

Fix #70.