Use fewer string allocations in console_code_for.
Fewer array allocations.