Group by in Dynamic Containers