Handle common cases for DISTINCT

and also some new and improved RenderTree instances