Replace llvm::array_endof with C++11's std::end.

No functionality change.