A few days ago, I posted here about a limitation in the LookupService API.
I had some time today and wrote a patch that addresses it. I tried it out
with the MongoDBLookupService using a String/Integer mapping, and it
worked. Here's the PR if someone would like to review: