Introduce PlannerQueryDocGenerator
Make PlannerQuery.toString use pretty printing