Xpages Categorized ViewColumn fix for 8.5.1 and 8.5.2

This demo application demonstrates a catagorized view bug that not solved in version 8.5.2.
See also here on IdeaJam
After submitting a bug to IBM I received a workaround and the promise this would be fixed in version 8.5.2. But it isn't.
I recieved a lot of e-mails from people who read my comment on Ideajam so I decided to make this available to all Xpage developers on OpenNTF