Fix isDirty when resetting several attributes

Related to what I posted in #1364 when record doesn't become clean after resetting several attributes.