Handle common cases for DISTINCT

and also some new and improved RenderTree instances
Looks like some dead code from an old approach.