util: fixing activeIndices in SortedSparseCounts to actually return the indices