Fix components inside group helper

Components (like `link-to`) end up with the wrong context when used
inside a `#group` helper. And their templates don't get grouped.

I understand that #group is experimental, but as long as the support for
it remains in master, it makes sense to not leave it broken.
Merge pull request #4957 from ef4/grouped-component

Fix components inside group helper