Singular optics and topological photonics