Toward a Consistent Theory of the Welfare Analysis of Agreements