Fix of #179: Custom attributes are not correctly reverted when calling model.revert()
Added isDirty = false after reverting (and test)
Added Tests