In working state again. Still hunting down a problem.
Removed undocumented fields again. "saved_segment" and "type_opts" have to be lists.