Add sql_type to is_in and intersects_with

This is required when you have to deal with empty array