Implement scenario copying.

Fixes #571.