ir: Add layoutStruct field to Class.