Datastore recline preview filter searches crash on non-text fields

When using the recline preview on a datastore, applying filters on fields that are not stored as text fields (ie. varchar, text, etc.) causes a postgresql error.

The proposed patch checks for the field type and casts non-text fields to text.