Good point about people who had the problem with a stock machine.
As an update:
iMac 27" 5K Retina (mid 2015)
8Gb RAM factory installed +
16Gb Crucial RAM that I added.
No problems until 10.12.4, then
-went to sleep when it shouldn't (set to 'never')
- whether manually or automatically in sleep mode, wouldn't wake
- could only start from sleep after unplugging power cable and waiting >5 mins
Apple repair service removed my 16Gb Crucial RAM. Problem gone.
I've just removed the 8Gb Apple RAM and replaced with the 16Gb Crucial RAM. Still working OK. In my case, it was clearly an issue with mixing different DIMMs.
According to the Crucial forums and Apple forums, a number of people have encountered problems mixing Apple RAM with other brands.
My guess is that whatever was included in 10.12.4 introduced new processes that triggered memory problems which hadn't manifested in previous versions.
To confuse matters, it may have also introduced other processes that affected other hardware components?
So, if you _do_ have a mix of Apple @ other memory, I'd definitely try that as a fix. For the rest of you, fingers crossed that Apple get their act together!