_node_map and _distance_map's keys are dof_id_types.

Catch node and elem IDs as dof_id_types.