Do bin -> ord for all the correct types

Fixes T1303

Auditors: alpert