only clone plain objects and arrays