[report] Use iterator when looping over dict's keys.