Small refactoring of the way agents are print to ostreams, so that it allows for easier overloading.