changes clone() to shallow-clone an object (or array) using for-in, instead of json/unjson