Avoids having yet another `switch` case over all ID types. Note that we could also add a string to the IDTypeInfo, but imho this is a bit too limited in scope/interest to expose this outside of the readfile code. Pull Request: https://projects.blender.org/blender/blender/pulls/117958