Bugfix for steady;

1.) Fixes cases where steady state of linear model contains NaN due to programming error, but max()-test does not catch the problem.
2.) Use correct error code 22 if NaN appear instead of generic 20