Add explicit message if purely forward or backward model failed to solve
Merge pull request #783 from JohannesPfeifer/simul_messages

Add explicit message if purely forward or backward model failed to solve
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.

(cherry picked from commit 49abff9e4d1ee451d927d78387aebb43726eb613)
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.

(cherry picked from commit 68b27252d7c0a98f7ea8ef731463496f14c6daa2)
Fix computation of SmoothedMeasurementErrors in Bayesian smoother

(cherry picked from commit 45ef721d03bc75a6dbf109afd060363f1e26eae8)
Add two unit test for perfect foresight simulation with only forward-looking variables

(cherry picked from commit ac085f943a3846a897786aecf461465b31d88113)

Conflicts:
	tests/Makefile.am
Revert "Merge pull request #783 from JohannesPfeifer/simul_messages"

This reverts commit 6d09a89ba56311f46348a8fef22bfe1dd1924bda, reversing
changes made to 1410dc2c76e286877d96b5be7534ed090eb3ffb2.
Revert "Revert "Merge pull request #783 from JohannesPfeifer/simul_messages""

This reverts commit edc312eb705c3b47ee1a377161bb1571c2a5049b.
Fix bug when calling non-Bayesian smoother after Bayesian estimation

Because xparam1 is used by the smoother, but xparam was set to the posterior mean, the non-Bayesian smoother results were based on the parameters at the mode, which are stored in xparam1.