Finish my-duplicate-line-or-region!

Lesson learned: don't fight Emacs! It seem that in
transient-mark-mode, the selection will be deselected after a command
is run on it. So we do it the Emacs way: which is to update the mark
and point to contain the region.