support lower expression with type cast

quick hack to make a "lower(integer::text)" index work with db:setup.