- Fix JSON serialization of classes and class refs/pointers