Whatever Works, though intentionally foolish and cartoonish where Vicky Cristina Barcelona is dry and pointed, is so in the same mode as a late-Woody Allen inquiry into the ways we learn (and…