Copy contour names when copying contours.

This addresses #1889.