ir: Add build functions
semantic: handle array comparison (equal)
semantic: handle array comparison (not equal)
test: added array comparison test