fix overflows
fix globalScale in overflows
Merge pull request #23 from gpetruc/master

fix overflows in TH1Keys