pairwise sum returns double for ranges with float elements