Adding support for GC of lists. Todo: Code review on approach