improve UnitOfWork::objToStr() to be able to provide an id/path in more cases