NameDB: fix for name existence check, added method to gather ids of nodes of which the name matches a given regexp. Graph: fix a unicode problem