Issue 27: Dirty flag not being properly set from afterCopy