Add generic linked-list ops, mpool cleanup.