JNAerator: fix resolution of typedef'd structs when the typedef name was chosen as "better" than the original struct tag (issue #367)