Convert halos to dict

This needs to land at the same time as the firedrake merge.