lib/poset: write_dot distinguise nodes with the same `to_s`

Signed-off-by: Jean Privat <jean@pryen.org>