Reorganize pretty print display.
Pass pkcs7 tests.
Fix PKCS#12 and X.509 parsing issues related to ASN.1 API updates.