Fix dlist breakages in the last commit.

Turns out the test file wasn't using DLIST_REMOVE, so added that.