In NeighborhoodCorrelation, avoid extra int-to-float conversion.

The summation type should be 64-bit integer if the input type is
integral, or 64-bit float if input type is float.  This has no
noticeable impact on performance, but it provides a few extra bits
for integers.