Remove commas at the end of lists (C++11 again)