implementation of cloneDeep

see #455 
Let's `return refTo[idx];` here instead. This'll remove the need for conditional logic later in the function body.