Add support for read-only dictionaries.
 - Needs more tests.