fix issue 10359 - ICE on printing ClassReferenceExp
Merge pull request #2224 from hpohl/10390

fix issue 10390 - ICE on printing ClassReferenceExp