Using accumulation undo type (eg painting) as the first undo step, broke code which adds an initial memfile undo.