Stateful rational resampler mostly working

It still wont handle the case when xLen = 1, and ratio < 1