Update UnitOfWork::clear() to include a few missing properties.