Only upsample a TimedArray when necessary (instead of using an "upsampling factor" of 0, leading to a division by zero). Closes #332