Group#to_array and FragmentMapping#to_hash + docs + tests

Here is another approach than PR #21.

I think it's a much better design; if we agree on this, I guess we can close the other PR.