Retire llvm::array_endof in favor of non-member std::end.

While there make array_lengthof constexpr if we have support for it.