Bug 8597:
The clone method should take into account the deep parameter.
Merge pull request #99 from lqip32/master

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