fix bug in trashroutes which causes it to error out on invalid routes
Fix bug causing occasional OOM with nodes using IPTunnel.