Corrected the JSON serialization for abstract classes so that the deserialize-as property is not duplicated in the JSON.