Group children belonging to same argument into subexpression