As Tanooki Mario, press B as you go down a pipe. If your timing is perfect, Mario will turn gray, but not into a statue.
Screenshots
Video
In other versions...
Fixed in SMAS? Yes.