Add ostream serialization to modcpp string