the assert message's file and line number gives some clue as to the real location of the problem. Added similar assertions to list.h.