Update palette when auto-creating variables

Fixes https://github.com/LLK/scratch-flash/issues/29.