Update lib/Doctrine/ORM/UnitOfWork.php

When the pk contains a DateTime object doctrine fail to create the index, because implode call __toString wich doesn't exists in \DateTime object