Fixes bug in dllist that caused tail adds to create circular links.
Changes dllis create implementation to bit more generic.