Dispersive to nondispersive transition in the plane wake and channel flows