Resource reference unsync fix

Problem is that the dirty properties do not automatically alter the status of the actual properties any longer (properties instance is shared among all resources, while dirtyProperties and deletedProperties are not). Therefore, the size depends on the current property size intersected with the dirtyProperties minus the deleted Properties. All this is not a matter of quantities but identical keys.