Use ArrayRef instead of explicit container.