Roi counters validity
Check that the coordinates of a roi (rect, arc, profile) is valid compare to the current detector size/geo.
Store in settings the raw_roi instead of the current_roi to treat roi validity correctly (raw_roi is a invariant).
Discard unvalid rois.
Recompute rois after a modification of the detector geometry.
closes #1774 (closed) #2727 (closed)