Merge pull request #390 from UriHendler/master

Added test case for issue #101
Prefer using original type over auto upcast in expressions
Removed redundant || typeof(T) == typeof(string)
Merge pull request #391 from scottmcarthur/patch-1

Removed redundant || typeof(T) == typeof(string)
Added test for broken ToCountStatement when doing joins with SqlExpression (issue #102)