Fix some typos in internal comments in the `diagrams` tool