update output refs when question ID changes

I have no ideas that are not moderately invasive. One is to lazily construct an index of *mug -> referenced itext* and add the necessary event handlers to keep the index updated as necessary once it is created. The index should get created the first time it is needed so it does not impact form load time. However, it could be tricky to prevent it from being created during initial load.