Rename unit type_id into type.