Replaced List::setAutoDelete() functionality with smart pointers