Rational resampler is considerable faster now.

There was a type instability. Also fixed an error with outputlength