Fixed changing variable name in set/change blocks in palette

Fixes #16.