Investigate bugs more carefully

Be a little clearer about what's happening with Project and Distinct and Column select.

Some new rules have also messed up the NaryJoinTests. But that's a problem with the tests -- see #328.