Throughout his career, Dylan has borrowed from other great American writers. On his new album, it’s Whitman’s turn