Essays on fiscal policy in heterogeneous agent models