Roundtrip tests for saving Gifs

Testing gif saving and palette handling.