textMatches: do not raise error when matching against a SQL expression.

Matching variables that are mapped to constants does not work,
and matching variables that are mapped to SQL expressions does not work
either. Should have same behaviour for both. Warn about it in the log.