GROOVY-6072: "String | []" is converted to a ClassExpression at semantic analysis
Fix unit test for GROOVY-6072 for 1.8.x