Use getregtype() to restore register's mode.
Use setreg() to preserve yanked text's -wise mode
Merge pull request #9 from Raimondi/patch-1