added missing select.grouped_cpp so that it preserves the grouping. closes #147