In GimpRectangleSelectTool and GimpFreeSelectTool, make sure the tool is committed when the selection is dirty.