Rewrite copy-to in map merge #1744