The Barnes Foundation presents an expansive, enchanting survey that highlights the artist’s magic and sophistication alike.