Make registers and delete-selection-mode work on rectangles.