Fixed imports
equals(Object) based on scopeId
Integration of the IRScopeListener
index for addedInstr
Emit of events for addInstr
Correct hasListener to check, if listener is used
Moved build to own helper; build with eventing