Switch inports and outports to objects keyed by the public port, refs noflo/noflo#118