Fixed bytecode string saving.

Strings were sometimes incorrectly saved to the bytecode, fixed.
Also, this should speed-up bytecode compilation (see the commit
changes), although I haven't tested gained speed.