Replace map-name with get-type-name.

This only handles types now, not functions or constants. It always
looks up the prefix.