#681 PLCgen: Improve prechecking error reports (addon)
- Best to review per commit.
- Attempt to get a solution for !798 (merged). This targets the branch of that merge request.
- Made the messages as specific as I can think of.
- Extended the test model, to cover all cases I can think of.
Addresses #681 (closed)