Add and fix spl-list.c