fixed generation of gossipinfo JSON response 

to avoid having a hostname and IP for one node. This led to false positive replacement exceptions. Added testcases and an example gossipinfo result