Better equals function for shadow-properties

Fixes a bug where setting the property to a date would always trigger a
dep.changed even if the dates were the same.