Allow serialization of ComputationTargetReference objects containing a union type.