image-warping: Fix bug where selection contained multiple copies of a handler instances. Handle some floating-point inaccuracies.