The New York Phil concluded its six-concert residency at this summer’s Bravo! Vail Festival with a survey of Stephen Sondheim’s legacy stylishly led by Leonard Slatkin.