In density: fixed error in measure_average_density_of_water when using min_distance = 0.0.