Misc fixes in EcalTPGTools