Fix smallids

The first commit here only fixes the trivial "you used a ludicrously small dof_id_type" use case, but the second commit fixes a problem on small meshes with small dof_id_type that could just as easily have manifested on huge meshes with default dof_id_type.