Add operator<< for ostreams.