(PUP-4336) Fix issues with trace and structured logging
This commit ensures that trace is output correctly for errors
that origins from the future parser. It also adds four new issues
related to the lexer and ensures that the errors and warnings related
to them are generated using the improved structured logging.