Improve valid() in krb5pa formats.