Fixed a problem when reverting changes on a Record involving adding/removing fields.