Add refheap-paste-region-or-buffer

Autodetects whether to paste the region or the whole buffer.