Ported GraphSONUtilityTest and fixed code to make tests pass.