Improve arity function for midpoints

Now there's a way to reliably calculate how many other points any
given point can connect to -- which we can use to find intersection
triangles and singletons.