Fix size of NaN vector returned so that resid.m does not crash
Merge pull request #659 from JohannesPfeifer/steady_fix

Fix size of NaN vector returned so that resid.m does not crash