Make util.clone more robust.