Minor improvements to DFS classes

> Status: for discussion

Makes the API more extensible, and more open to new stack bundles.