Re-implementation of the entire IQueryable class

Also updated all tests.
Performance gain over 10000 calls saves over 6MBs of memory allocations.