Stav dette: Essays in macroeconomic modelling with frictions and rigidities