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.