fix updating of Documents with event subscribers

fix for https://github.com/doctrine/phpcr-odm/issues/526

* [ ] add a test that converts a value back and forth via postLoad/prePersist events
* [ ] squash commits
@asiragusa does this test case cover your use case?