Fix vertex_to_dof code for local dof indices.