Hcal upgrade tdc fixes

These changes affect the TDC simulation used in the upgrade.  They have negligible effects on the non upgrade simulation and reconstruction.  This pull request also corrects problems found in request #1140.