Fixed bug with calibrating ScRemoveWaveform

(Used to be) discrepancy between stimpos and stimpos_offsets, and
between with and length(v_median)
Not tested