Setting dirty flag when assigning flat dynamic attributes.
New unit tests for dirty dynamic attributes monkeypatch.