add RefToArray class for using the delete[] operator.
torrent: improve piece_info member; reduce memory consumption; improve performance

Allocating downloaders and block_map lazily saves some memory, esp. for
large torrents. Maintaining downloaders_count allows instant
has_a_downloader(). Using TorrentPiece[] array instead of array of pointers
also saves some memory.