Semantic Analyser: Wrong type of relational expr

The resulting type of relational expressions, such as “7 < 10”,
was mistakenly set to the upper bound type of the operands,
instead to boolean.