Make flatten operate on Grouped, add multijoin methods