implement remove cascade support for Referrers/ReferenceMany, fix bugs
related to repeated flushes