Better validation for AnnotationType.