compiler/types: Add a struct_type_is_packed wrapper