Fixed many bugs

- Added the missing non_atomic flag
- Fixed a bug in groupBy that caused the reduction not to be finalised
- fixed a bug that caused some queries not to be finalised on the server
- Adjusted the Expr instance for (->) to avoid ambiguity