Fixed 'If-Then-Else' type resolution.