Add deepclone util function.