Changes to Duplicate.

- Return value is now an error.
- Generic module implementation returns an error.
Improve Duplicate() comment.

Also make sure comments respect the 80 column limit per line.