Fix bug in the `diagrams` tool where external prototypes in entity diagrams would be displayed as instances/classes