Only upsample a TimedArray when necessary

For details, see #332.