In debug mode, throw exceptions in addition to displaying an error message for out-of-bounds errors.
Fix a bug in the indexing of the spline implementation in KTGainNormalization (polar fs only; does not apply to previous usage with fftw fs).