all functionality from delite optiql ported; all tests but groupBy passing