Fixed the problem with the linenumber in errormessages being incorrect due to a leading newline of a template being stripped before compilation.  Modified the codegenerator to skip it instead which is the correct way to do it rather than modifying the input.