Add error messages for structs containing nested undefined structs