[#445] Only lookup strings in term translation table

This fixes the multilingual tests that are currently failing on master.

It seems that when the multilingual extension was written, package dicts
never contained ints as values. Now they do. But postgres cannot compare
an int to a string so it crashes. This commit changes the multilingual
plugin so that it only tries to lookup strings in the term translation
table, other types are just skipped.

Fixes #445.