Ported GMLReaderTestSuite and fixed code to make tests pass.