Fix a bug in the `diagrams` tool where an entity would have at most one incoming calls/uses edge (reported by Andreas Becker)