Use DLIST macro whenever possible

This avoids crashes when manipulating the double-link lists by hand.