codegen: fix field offsets in packed structs

* add nested packed struct/union behavior tests
 * use ptr_info.packed_offset rather than trying to duplicate the logic from Sema.structFieldPtrByIndex()
 * use the container_ptr_info.packed_offset to account for non-aligned nested structs.
 * dedup type.packedStructFieldBitOffset() and module.structPackedFieldBitOffset()
62d178e91aXavier Bouchoux committed on 10/3/2023, 4:39:20 AMparent412d863
7 files changedLine totals unavailable