IntOrString for use in JSON/YAML

Specifying an API type as IntOrString will allow JSON and YAML to accept
either ints or strings with the same name.  For example, port names or
numbers.
alternatively you could build those tests as 'table' test, see:
https://code.google.com/p/go-wiki/wiki/TableDrivenTests