assorted fixes to new system

- difference between local and remote nodes (local initializes to est 0,
pref 0, remote initializes to est maxint, pref -1)
- dictionary bugfix (reset to default value)
- distance can stay at maxint in some cases, which is unreachable
- allowed easy swapping between preferred neighbours