ExpressionTransformer: fix for #1006: read comprehension first type
Added test for #1006, #988