Log a string representation of Linq expressions (NH-3371).
Fix InvalidCastWithGenericDictionaryOnCascadeTest test for Firebird: 'Version' is reserved word.
(cherry picked from commit cac60024bdc5f6f596f1c0a1590176ba508d6f3f)