Use visitor patter in ExpressionTreeMaterializer for implicit casts