This is getting subtle where the groups need to be in a precise position but that works :) Fixes #1409
This is very common for stateful react functional components. It also matches last object expansion. I think that we should only do that for a single argument in function definitions though, unlike the last for function calls. Fixes #1019