I think both you and Mel missed Brian Kernighan's old adage:
"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"
But that only holds if Mel was working at the limit of his cleverness. I'm willing to assume, based on the evidence, that he still had some excess cleverness capacity reserved for debugging.