Fix collection of resources inside ResourceGroup

Hello.

I think I found a bug inside ResourceGroup class. It was appending to the `@resources` array only the last resource of each resource group. 

I fixed it and added some tests to the Group context.

Cheers!