ir: Add Aggregate base class.