Rename dir and coord type for ostream operator