Fix Translator cache

We need to serialize the loaded messages when saving them to the cache, otherwise caching of translations does not work.