Better handling of nameDef and nameRef in edif backend