Added serialization of reference objects, inheritance possible with
disparate instances of Custom.class.