Fix Issue 1543

Write class information for enums when the type is not known.