Bugfix util.takefrom when input arrays are ndarrays.
Bugfix util.redden for cases when S is a 1-element array, but wave is not.