Add support for dictionary.
closes #21.