Added a bunch more ASSERT statements to list.h