Fixed the following issues:
-GroupBy,OrderBy,Count,Max/Min. The fix was to Serialize the classes which are causing this exception.