Show NodeId in misbehaving debug messages

Not quite ready to pull yet, as needs a few lines from commit 7c76839072bf84e493ab2c88c2726ffaae5e2154 first...