Correctly generate named constructors.