Reimplement Time::ceil and add a corresponding Time::floor with tests.
ceil returns slightly different results to previously with non-integer
frame rates.
Then use floor to round the playhead position when trimming.
I remember adding this line to fix a completely screwed up display,
but on testing again it seems to be wrong; it results in wildly out-of-range
memory access. Not sure what's going on.