assign stable IDs to public enums