buildDotCode function

Internal: Build DOT code for the SEM plot, including construct correlations.