create early uuid setting

fix https://github.com/doctrine/phpcr-odm/issues/450

As discussed in the issue it would be nice to get the document's uuid earlier than after flush.
Changed that behavior and implemented a test for that to test if there is a uuid after persist and if it is the same when find the document again.