It is fix for the Bug 8597 - Object clone doesn't work correctly 

The clone method should take into account the deep parameter.