Added support for creating CTree with any stream (not only fstream)