Use items iterator for dictionaries.