Clean up messages for type errors.