Macroeconomic stability and heterogeneous expectations