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
i pushed a commit to remove it.