Add test for issue 248, GCraph.serialize() + base kwarg