Fix _merge_entries on pypy.