simplify invalidation list handling which fixes a hard to test bug, create testcase and fix a bug that causes a continuation not being properly invalidated