add DeepCloneInterface to solve deep cloning issues
Merge pull request #244 from Kunstmaan/deep-cloning-fix

add DeepCloneInterface to solve deep cloning issues