Adds proper toString to all message related classes.