Fix and clean up the web-i18n example.
Fix serialization of DictionaryList and add unit test. See #621.