Stop using ArrayRef of a const type.

I *think* this is what the GCC bots are complaining about.