I'd be willing to bet that "Reveal all" doesn't disable the visibility code but rather flips the "seen" flag for all of the tiles, which is why there is no going back. Since it was designed for debug purposes I guess the assumption was there wasn't a need to revert, so flipping the flags was the lowest risk approach (i.e., no new code required.)