Fix of #179: Custom attributes are not correctly reverted when calling model.revert()

Revert by clearing the cache- This will result in a new deserialization
of the raw value once the property value is needed again.