Made `summarize_results` compatible with the new version of
`_write_summary_file`. Fixed a typo.