segment: Separate SEG_N_TYPES from enum segment_type.