Improve duplicate-current-line-or-region fn