fixed some more issues with Ark importer

- fixed wrong detection of duplicated edges
- added indirect edges
- filtered and trimmed input names