dds-topology: corrected hash calculation in case of collision (GH-21)