[core] gc engine, graph parser: better debugging + fix token positioning while rewriting