Crude implementation of DistributedClass serialization