Fix bug where loaded windows were not resized

Refs #9970.
Refactor Graph::insertText

Refs #9970
Fix bug when saving Graphs

Refs #9970
Merge branch 'feature/9970_refactor_project_serialisation' into develop