Drop casting to text for LIKE queries

You should never use non-strings for LIKE queries. The change also
restores case-insensitive behavior for citext.