LV2 plugin fixes, implement state save&restore