Avoid generating invalid SQL when a LINQ Contains() expressions references an empty collection.
Merge pull request #334 from schmidt4brains/v3-fixes

Avoid generating invalid SQL when a LINQ Contains() expressions references an empty collection.