Codegen: improve Routine error if input doesn't provide a symbol
Codegen: update doc: difference between name and result_var

Perhaps these could/should be refactored, but for now, document
that they are usually the same thing.

Other minor doc updates.