made TCOD::Color class to work with yaml serialization

When working with yaml, Color class was not getting serialized properly, leading to nasty interpreter crash when using dumped and loaded Color. I'm not sure if my aproach to fixing this problem was right though, I leave it for you to judge.