*new* check_struct_type: if we allocate an unexpected type of struct