librustc: Fix field offsets for packed structs.
Add test for passing/getting packed structs with ffi.