Add tests for member swap and fix undirected_graph<>::swap