ir: Add more StatementExp related utils
llvm: Implement simple array casts