Use new preamble functions in generated code, handle c-style escaped characters in Strings correctly, use exceptions in generated code