Reduced # members of depends_t_state to 2, refactoring

type##_tree_stateful_dfmap() generalized to
type##_tree_##state_t##_dfmap() [same for hfmap], functions in
det_depends now only take parameters they actually need.