PortType.{INPUT, OUTPUT} -> PortType.{Input, Output}

Part of modularisation fixes in the main repo

@ikeough @pboyer