This changes the interface to the ThreadIndices classes to have both input and output indices. It also adds a visit index to ThreadIndices. Also added the VisitIndex execution signature tag, which relies on this behavior.