Make DictionaryList serializable. Fixes #621.