Add duplicate-region functionality as well as duplicate-line