Fix a bug when generating png-trans resources and for resource-header ID-enumeration.