These methods now check whether the input list is NULL and no longer segfault when it is. This makes it possible to copy and free empty lists without wrapping the calls to these methods with a NULL check.