[BUG]fix gh-2348

when constant are used, we use the smallest dtype for them. But this
isn't enought when computing on them. So upcast to int64 to make sure
compuration is right.
arange.infer_shape upcast more and be safe again uint64. The old upcast was ok, as the elemw
Merge pull request #2349 from nouiz/arange_infer_shape

[BUG]fix gh-2348