Revert "Removed to_s on ports"

This reverts commit 85add5ac4a30c3b1fab47d04252ed5237a8c0e8c.

Revert "Fix tests to expect to_i"

This reverts commit 86c6350dbf34dc7b20e8bad01d9c67808f3eddb4.

Revert "remove to_s on stubs to match #253"

This reverts commit 59b1f1a6b7f9c3ff7893413d13e905697f5e4075.