add restart/do_init methods to ijsource and use it from istream_parser clear