asn1: Fix check/print type confusion