Fixed #810: ostream error when << any objects