Improve formatting of planner state. When a query cannot be planned, return dump planner state as part of the exception.
More null fixes. Add a check that all rows in a VALUES clause have the same number of columns.