Ensure that UA_INVALIDTYPE has the largest id

So that we can differentiate between "good" and "bad"
types by ony giving an upper limit.
E.g. if(type_id <= UA_DIAGNOSTICINFO_NS0) ...