IR: Stop relying on GetStringMapEntryFromValue()

It relies on undefined behaviour.
ADT: Remove GetStringMapEntryFromValue()

It relies on undefined behaviour, since `StringMapEntry<>` is not
a standard layout type.  There are no users anyway.