Some improvements to formatting of debug output.
Fixed bug in temporary managment

The temporaries table was not cleared between function compilations.