Fix grid searching with non-string values.