Add a CopyAttributes method and base DeepCopy on it.