Fixing random uses of 'long int' for catching dof ids.

Not sure how this got started/propagated.