I found a PATTERN.
First time I reported here about this weird psychedelic screen sometimes at shutdown was Nov 5.
Nov 27 I posted an update, with my machine data and reported that I start and shutdown daily my Mac , and the problem occured only occasionally.
Same is today , I think it did not return or only once .... but last week it occured with logging-out several times in a row - a new situation and a pattern ! Let me explain :
I always am the only user on my machine and only use 1 account. So normally I start the mac and login into my account , and at the end of the day , do a simple shutdown.
I do have several other accounts with apple-ids at my mac , but these are sleeping for many years - I do not use them.
However last week I needed a test using one of these sleeping accounts (because I wanted to test a dropbox link for downloading by others who do not have dropbox - but that is irrelevant here). So I logged into another account on my machine and updated that sleeping account (from the mobileme era) with a new password for the apple-id and installing icloud drive etc for that account.
For the tests I wanted I had to go from one to the other account and back several times. For that of course I did not shutdown the mac in between , but logged out and in the 2 accounts several times.
For I think 6 out of 7 consecutive times* I logged out of one of these accounts I got the full blown 'screen artefacts' - while shutting down once in between of these sessions did not result in the screen artifacts.
The next day I worked in my usual account , and now I had the screen artefacts' at shutdown ...
Because over the past months I have seen that only a few times - I thought that perhaps that other account on my machine (with an active icloud drive) - that I no longer needed really - may have an effect. So next decided to log out of icloud in that extra account (which deletes the icloud drive..). Now over the past days the screen artefacts did not return on shutdown.
Conclusion : complete shutdown is not needed for the problems to arise ... logging out ... or ? 'leaving' the icloud drive may suffice for the problems to arise , and like I posted last time , it is a software problem.
The problem with Apple probably is 'they' are focussing only on the functioning of the new laptops with the touch bar.
I firmly believe , it is also the changes in the Sierra OS needed /introduced for the new laptops with the 'graphics touch bar' that caused these 'graphics artefacs' on the iMac.
I am using the Mac some 30 years and never before had serious issues like now with this machine , first some months ago with El Capitan - with the 'bluetooth issue' at start up , with no connection of keyboard and mouse - and now again with Sierra and the graphics artefacts. However before El Capitan I always waited with upgrading the Operating System around at least a year after introduction after around the 5th minor update ... when all issues have been corrected.
With the latest 2 OS upgrades - Capitan/Siera - I was forced to upgrade much sooner because of the integration with iOS ... and important corrections such as for the Notes app .. Also upgrading iOS on iphone / ipad is forced upon you with hampering warnings... Besides upgrading for security is more relevant now...