fix important inverse_wavelet_1d bug when dealing with subsampled wavelet coefficients