make difference calculation stricter

Changed entities with the exact same properties no longer get counted as
modified.

issue #1287