starting to implement linked types in doctags; needs refactoring as this depends on the language beeing processed  !