bugfix:  waverecn now uses take when calling idwtn so that it also works for wavelets such as db8