Refs #3809 - Remove useless assignments

This removes a lot of variables that occupied space in memory for nothing, and I added some debug + backtrace for some exceptions.
Ditto (there are many other debugs which I think should be all errors).

Plus an extra empty line here.