Replace Array with std::list in net.{h,cpp}.