Fix NPE in PlanPrinter
Rewrite identical projection expressions in terms of the same symbol