From Sunspots to Black Holes: Singular Dynamics in Macroeconomic Models