I don't see how it couldn't be specific to totodile anyways, the coding of these earlier games have acted in stranger ways.
Totodile has nothing to do with Leer's coding. The only way it would make sense to me was if there was a filler move called Leer with those effects that only Totodile can learn, or if the move Leer checks if you are using Totodile, and if so it goes lolglitch. I can't imagine any other way it could happen.
Also yeah, already read up on the Dokokashira door glitch.