Detect if class is cloneable