Fix the 'copy' expression in code generator.

What was I thinking when I wrote this?  What kind of "copy" does not
allocate fresh memory?  How did I not notice this before?