remove $unset for attrs not explicitly set to `undefined`