Ported GraphSONReaderTest and fixed code to make tests pass.