assist #12385: use ArrayList instead of Vector (rebased from develop)

Replace some use of `Vector` with `ArrayList`. Should not break Bio-Formats or its API.

--rebased-from #1166