Some updates

1. zpipe.h: add irange, irepeat, iall, iany.
2. zpipe.h: add print functions.
3. Some other fixes.