Add test for keeping streams open for GMLWriter #343

Interestingly GMLWriter was closing streams which seemed to go unnoticed.