[FLINK-1040] Make type() call in projections optional