Midship......
I read your file and the structure you outlined for .wrp files is essentially correct.
However, I have fixed many .wrp files and I have never come across the number of models counter being incorrect.
Having said that, it doesn't mean it doesn't happen, I just haven't seen it yet.
In all cases it has been one, or more, of the Object definitions that are incorrect.
By object definitions I mean the 56 byte blocks which describe the objects position and orientation on the map.
Specifically, the X and Y position values.
There is usually at least one objects position that is incorrectly specified.
It takes a while scanning through the whole list to find which one, or ones, are incorrect.
They are only allowed certain values and if a forbidden value is specified, it is 'Out of Bounds'.
This is usually, to my mind, caused by an object disappearing when you attempt to move it whilst zoomed in too far.
It doesnt disappear, it gets moved to one of the map edges, sometimes 'Out of Bounds'.
It is always best to find these objects and delete them before saving the .wrp file again.
Planck