Added checks for compatibility of class and attribute stereotypes.