Topological Strings, Matrix Models, And Nonperturbative Effects