Fixes missing int/long conversion bugs that caused int overflows on shifts of what should be long values
Added large number histogram test to excercize potential int overflow corner cases