Add test to ensure streams stay open on GraphMLWriter. #343