reparse speedup, messages desync fix

Reparse is sped up 2x-3x.

The 'BUG: MESSAGE RECEIVED NOT WHAT WE EXPECTED' with this patch triggers a deeper-than-usual reorg instead of just skipping messages which could cause dangling assets, orders etc.