Add config functionality for basic operations

This PR adds `cfg->copyf()` calls for some basic functions like insert, find and so on in the linked list implementation.

This ensures that the user can do refcounting and other fancy things automatically on insertion/... of elements.