fix updating of Documents with event subscribers

fix for https://github.com/doctrine/phpcr-odm/issues/526

* [x] add a test that converts a value back and forth via postLoad/prePersist events
* [x] squash commits