bpmn-editor: code improvements