Fix some N+1 queries on the index pages for activities and sequences.