Fix bug in deterministic conditional forecast.

The type of the first shock was not set according to the user request.
Concretely, it would be random, and almost always a perfect foresight shock.
(cherry picked from commit 503d2baa89e7184ac18a644d833b38c8d84eff7f)