bugfix: plan->qual contains bare expressions, not RestrictInfo, once PlannedStmt gets constructed.