Fix distinction between languages and translated languages (fixes #968)
Use dict since session is now serialized as JSON (fixes #975)