I have the same problem, I add a new attribute called "databaseid" and now I can move different nodes with the same name. but I still have the problem to connect the nodes. I'm thinking in change the connectAll function using my new attribute, or to gave them ghost names to connect. Let me know if you find a better solution.
Marcelo