py3: convert dict.items() to list explicitly
On python 3, dict.items() returns a dict_items object which cannot be sorted.
Differential Revision: https://phab.mercurial-scm.org/D2415
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.