Reactivate and fix the test for the balanced growth path.

If the homogeneized equation evaluates to zero, then we skip the
test (otherwise the 2nd derivative of the log is infinite, and the test fails
while it should not necessarily).

Closes #506
Refuse non-stationary endogenous variables in deflators.

It is not clear what we should do in that case anyways.