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