i think `wrapObject` is a bad name. This is really cloning, right?