Bug fix for Serializable objects with writeObject that don't call
defaultWriteObject()