Eliminated global state in det_depends.c

In order to do so, defined "depends_t_state", which is passed around in
all of the transformations.  Up next: reduce amount of information
sharing.