Adding toString to type constraint classes.