Fix STEADY_STATE operator for model local variables.

Thanks to Tom Holden for spotting the bug.