Abelian varieties of large rank over function fields