Fix an issue where upsampling could lead to an integer overflow in a long `TimedArray` with a large dt.