Fix approximate last frame when playing and cueing previous/next frame
Using Rationals from Boost, more optimized and more tested