fixes serialization/deserialization of binary for graphs and jsonschema interface issue