Misc fixes 11

another test failure in Ubuntu testing in AR predict_dynamic

fix bug in S_hac_simple closes #980