Check for XmlIgnore *before* throwing that a type is not allowed