osr: add option opt_algo. #779
Change display of failed solution to a warning

Problem can be missed too easily otherwise
Add two unit test for perfect foresight simulation with only forward-looking variables
Properly initialize var_yf in forcst.m
Fix length of stored and plotted forecasts for Bayesian estimation

It stored the initial condition(s) in addition to the forecasts for the specified horizon. In plots, the first point was actually not the forecast, but the initial condition. This contrasted with the behavior or ML and recursive Bayesian forecasts. Now the stored and plotted forecasts always have the first forecast horizon as the first entry/data point
Make sure all computed moments in Bayesian estimation return column vectors

The HPD were the only exemption, being row vectors.
Cosmetic fix to wording of error message in resol.m
Add header with info to pm3.m
pm3.m: If no TeX names are provided, default to variable names provided

Old default assumes that only moments for endogenous variables considered. This leads to wrong results if e.g. shocks are considered.
Improve documentation on filtered variables
Make sure classical filtered variables have the same length as the Bayesian ones, i.e. nobs.
Fix computation of SmoothedMeasurementErrors in Bayesian smoother
Fix selected_variables_only option with classical forecasts

dyn_forecast requires that the smoother has been run on all endogenous variables, leading to crashes. Now, if this option is encountered with classical forecasts, it is overridden. Also documents this in the manual.
Document different in FilteredVariablesKStepAhead-matrix between classical and Bayesian smoother
Add unit tests for correct dimension of filtered, smoothed, forecasted, and updated variables and shocks
Always display value of posterior/likelihood at the mode

Also clarifies that minus the posterior/likelihood is displayed
Harmonize field length for FilteredVariables for calibrated smoother

Analogous to 4f5e0321228c0e4aca19fcd114f26dbaa1bbbfaf
Replace eval-command in dynare_estimation.m by direct call to fields
Add utility to convert Dynare 4.5 results structure to 4.4
Change wrong Windows-style file separators to Linux ones