This adds LLVMGetAggregateElement as a wrapper for Constant::getAggregateElement, which allows fetching a struct/array/vector element without handling different possible underlying representations.
As the changed echo test shows, previously you for example had to treat ConstantArray (use LLVMGetOperand) and ConstantDataArray (use LLVMGetElementAsConstant) separately, not to mention all the other possible representations (like PoisonValue).
I've deprecated LLVMGetElementAsConstant in favor of the new function, which is strictly more powerful (but I could be convinced to drop the deprecation).
This is partly motivated by https://reviews.llvm.org/D125795, which drops LLVMConstExtractValue because the underlying constant expression no longer exists. This function could previously be used as a poor man's getAggregateElement().