Create a netenum_t class to carry the enumeration type in the netlist.h structures, and use that type to check enumerations with assignments.