TriangleTopology: Avoid segfaults in Python wrappers

Also fix incident_faces for boundary vertices.