general: Write ASN_ID, ASN_TYPE and OBSID to PNG header

Also attempts to write subsystem number which is required for
the plane numbering. This does not solve the problem of determining
the correct subsystem number (the subsystem number from the
first file in the association). Made somewhat harder by this primitive
not distinguishing Frm from Grp.