IO package: support for iostream (io modes, tags)