[cleanup] Merge common code IrTypeStruct::get() and IrTypeClass::addBaseClassData()
Fix issue 726: Wrong alignment for struct fields on x86_64/amd64