starting to factor out parts of block creation code
factored out class-ref generation (without memoization)
now generating code for creating a stack block with a variable captured from the scope