M156: add conditional persisted_version update during deserialization
M156: fix obj generator to keep TypeVersion as int
Merge pull request #482 from pkediyal/schema_versioning_final

M156: add conditional persisted_version update during deserialization