Bugfix: Local events for changed attributes aren't processed at transaction commit time.

Fixes #3605