accumulators: fix long-standing dependency tracking bug. merge [80826], [80885], [80888] from trunk. fixes #7409