fix color de/serialization issues in c#