Fix reverting unsaved changes for entities with custom (de)serialization
Merge pull request #56 from iosphere/pullrequest/revertUnsavedCustomDecode

Fix reverting unsaved changes for entities with custom (de)serialization