MagicRange: be smarter about setting range borders.