Switched dag_lookup and dag_lookup_set definitions.

dag_lookup was constructing the set, and dag_lookup_set was doing the
variable lookup.