When deleting a router, decrement num_routers

before reallocing the array
Also, ignore own our RIR msgs
Use correct size when searching subnet->routers

Various realloc fixes
Use INT[32|64]_MAX to move ids to end of array when sorting