Using case-insensitive comparisons to support lower-case expressions

When testing this library with some real-world SQL not written by me, it threw an exception when encountering an expression that included a lower-case call to CAST. Since SQL Server accepts this expression, I made some comparisons to string constants into case-insensitive comparisons, and added a couple of unit tests to verify the fix.