D3's nesting and rollups (without D3)