Restore needed thcovmat functions
Created by: andreab1997
It seems that #1899 removed some functions that are needed for some of the reports we usually do (cc @giacomomagni). For example for shift_diag_cov_comparison
. I am trying to restore and eventually fix this here. @RoyStegeman @scarlehoff