typesafe_cb: handle pointers to undefined struct types.