Test that helpers are called only once when invalidated.

(This was fixed by the recent commit eliminating Deps.isolateValue)