update palette and paletteArray when options are changed
add tests and reflow automatically for ("option", "palette", []) call.  Issue #159