add istream constructor variant to CircularWrapper and CircularReverseWrapper