Apply Serializable/DataContract attributes to DREObject.