Compiler: Make sure that generator variables are propagated. Mark all variables in a generator as USED_IN_SCOPE so that they actually get propagated to the generator. Also: Save the generator state variable in compiler_frame, so that it is easily accessible from the code-generator.