Technically the Melee devs noticed the wave dash deal during development. They just left it in cuz they figured, what the hell, nobody'll probably figure it out anyway, and if they do, who cares.
Melee an accident? I doubt it. Great games aren't really "accidentally made"