Fix #70

When we have nested generators and we want to get a reference to caught 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.