Fix struct/class mismatch and minor code modernisations in Tf/TsaAlgorithms, Tr/TrackTools, Tr/TrackCheckers