Return value of us_dlist_setptr fixed, along with some minor optimizations in the routine.