Small refactoring of the way agents are print to ostreams, so that it al...

...lows for easier overloading.