Fix RegionCache::releaseRegions
Fix bug in releaseRegions causing double region release if a WD has multiple copies that match the same cache register. The solution is make the RegionCache::releaseRegions method behave like RegionCache::prepareRegions where the copies are filtered to avoid duplicates