Fixes https://github.com/llvm/llvm-project/issues/56496
As mentioned in the issue, new functions LLVMArrayType2 and LLVMGetArrayLength2 are created so as to not break the old API. the old methods are then marked as deprecated and callers are updated.