fix #974, don't allow direct subtypes of ConstrainedAnnotation