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

Cherry pick change from R2015, for Core modularisation API compatability