Don't skip writing dirty resources if we have RefAllResources on