Fix change assoc by ids

Don't mark dirty if the associated ids have not actually changed.