Add clean-up stage for handling coordinating clauses.

This also changes the head_rule interface to return the index of the head
child rather than modifying the nodes directly (head setting is now done
only in the visitor).