Rename clear() to cleanCopy().

It fixes an awkward name and makes the cloning part of the function
which I feel is cleaner and easier to use.