UTIL: move rank-2 dlist routines into dlist.c.
UTIL: move rank-3 dlist routines into dlist.c.