fix text palette handling
change edit mode implementation
updates for new element edit mode schema
strong typing of ArpeggioType