ir: Add isWeakLink to Function
llvm: Support isWeakLink on functions
semantic: Mangle name for arrayAlloc function
semantic: Use isWeakLink on arrayAlloc function