Add dump_hunks(), designed for debugger calling, to ui.c.