Support for cloning classes and attributes