Fix exception on type check
Fix robustness issues in Asn1Scc API