yams #6587 diagram generation fixed [resolved]

and a tiny refactoring and a compat fix. see source history for details.

prioritynormal
typebug
done in0.20.1
load0.500
load left0.000
closed by<not specified>