BasePort.__repr__() now looks for send() and receive() to determine port type.