new function g_slist_copy() to duplicate a list with all its data