Only upsample a TimedArray when necessary (instead of using an "upsampling factor" of 0, leading to a division by zero). Closes #332
Merge pull request #334 from brian-team/fix_332

Only upsample a TimedArray when necessary