Added dictionary export/import for synthesizer. Also added unit test for it