Took are of Yingyi's review.

git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_fix_issue_207@1015 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java
index 9878cf3..345f68a 100644
--- a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java
+++ b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/FuzzyEqRule.java
@@ -101,11 +101,11 @@
                     // Hack to make sure that we will add the func call as is, without wrapping a tokenizer around.
                     IAType type = (IAType) context.getExpressionTypeComputer().getType(inputExp, metadataProvider, env);
                     inputTypeTag = type.getTypeTag();
+                    // Only auto-tokenize strings.
                     if (inputTypeTag == ATypeTag.STRING) {
                         // Strings will be auto-tokenized.
                         inputTypeTag = ATypeTag.UNORDEREDLIST;
-                    }
-                    if (inputTypeTag == ATypeTag.ORDEREDLIST || inputTypeTag == ATypeTag.UNORDEREDLIST) {
+                    } else {
                         useExprAsIs = true;
                     }
                     inputExprTypes.add(inputTypeTag);