Copy contour names when copying contours.

This fixes #1889.