Bugfix for dof_id_type != unsigned int

I didn't trigger this until using an 8 byte ParallelMesh build while
hunting down a different bug... we really need to get some kind of
PRNG based combinatorial build testing going.