This simplifies the code that works with the `BLI_serialize.hh` header. The various `lookup` methods do a linear search. If there are only a few elements that can even be faster than building the map first. In the future it might be nice to transparently build and cache the map internally if necessary.