Add a _clone suffix to id attributes in clones

This helps preserve the funcitonality of other plugins that require
unique id attributes. See issue #622.
Merges #628 into master.