One of the most iconic jokes from The Simpsons has influenced decades of later animated comedy shows, but the original gag was last-minute improv.