When the objects are stored, ensure that they have a "type" member that makes it possible to determine their class/purpose.
Make LdDiagramObject a regular class.
This is required for gtkdoc-scangobj. So far it's much like it's been before, the main differences are that source files are in two directories from now on and the build process has two stages.