Writer-director Seth MacFarlane is like some weird combination of a stupid, dirty-minded teenager and a brilliant comic master. How about a joke that combines Robin Williams and 9/11? "Ted 2" contains laughs about things that seem like they just happened - for example, a scene with New England Patriots quarterback Tom Brady that references that deflated-football scandal. Liam Neeson plays a version of the cautious, paranoid character he's been playing in action movies, and Jay Leno appears in a single shot that's a big laugh. The movie begins with the marriage of Ted and his girlfriend, Tami-Lynn (Jessica Barth), and with its vivid language and drug allusions, the movie earns its R-rating within about three minutes. MacFarlane is cynical, but he's not a cynic, and there are moments in "Ted 2" when you can sense a longing for the gentler and more upbeat entertainment of an earlier generation.