Use ArrayRef in AddMethodCandidate.

Patch by Robert Wilhelm!