Add Mesh.triangles accessor, and do some cleanup.