unitig_visitor: use the API to enable message caching

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>
thorium: store actions to cache

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>