synopexpand: fix [foo]... expand result
synopexpand: add unittest
update README
replace ~str => StrBuf