dictionary: remove the as_dictionary variable
dictionary: use list_entry mode when --as-dictionary is used
tests/dictionary.py: add tests for dictionary command-line processing