new Ramda function for deep cloning