Changed data types storage to store guids instead of ids

As discussed in #92.

One thing that I do not fully understand is why `Property.DataTypeId` is serializable -- I left is as-is though, as either way only the definition/prevalues matter for the sync.