how do I restore the Download stack in the iMac Dock?
Open Finder and go to your home folder using the go menu. 
Drag the Download folder to the dock to the immediate left of the trash. 
Control click the downloads to choose the stack effect if needed.