In “Twin Peaks,” Kyle MacLachlan’s Agent Cooper works from clues he picks up in dreams involving a smooth-dancing dwarf. In the “Sopranos” episode “Funhouse,” Tony confronts a ...