Added test for JSON serializer with graph elements as key.