Maps a key segment (e.g. "3") to a human-readable simple name using a reverse lookup map (id -> type) for O(1) lookup.