Added support for lists of pointers (mainly with freeing)