Fix an error where `PortList`s could not be indexed by strings.

The `long` in #10333 should index the PortList as a string, not an integer.

 * FIXES #10333
Merge branch 'fix/10333-index-by-0L_r2' into fix/9462-refactor-netstatus-parsers_r9462C_r2