Move reference counting into optimize to eliminate unnecessary calls to graph scattered throughout
Change graph printing so that the ViewUntilTable materialization decision is exposed (and make it a bit more legible/obvious)