generic ostream operator<< doesn't work

github issue #23