Add new type support in list.c/list.h