Implement support for Group fragment

This implements the support for Group type fragments.
There are no tests because I'm not sure how this should be tested, sorry.

I hope that the implementation suits what you expect!