GSA fixes for rmse analysis (cherry picked)

Fixed bug with calls to dsge smoother which were broken with missing values;
Proper use of dataset_ structure and remove the dangerous dat_fil_ utility;
Added r2 in output.
(cherry picked from commit f5a6835c6367d568c642735b53a9eae46f93f193)