implementation of cloneDeep

see #455 
Right