simplify helper method
function_generator knows its parent
a local_frame knows the innermost frame of the outer function
moved knowledge of the outer frame from the local_frame to function_generator
move class loop to separate files
emit bind instructions
fix bind emission