Fix some issues with debug_each, like catastrofic breakage of things left and right, if output= parameter is not given in conjunction with debug_each=1. Also (hopefully) fix garbage output issue with it by closing the file after each iteration.



git-svn-id: http://simulationcraft.googlecode.com/svn/trunk@17847 3b4652a1-8050-0410-ac47-3d40261b0f8b