fixed some compound serialization related issues and added code generation for the graph test