Added equals() for IRScope