Don't clone layer objects

In general, layers aren't safe to clone -- they may contain references to the
map, to themselves, to arbitrary other objects which should not be cloned.

The example for which cloning was added has since been removed anyway
(6afda200, c1ee4381).