further constness tightening and bug in value_parse sorted
added seq_resize & seq_insert; scan_peek; smap_new,smap_put, smap_close