correct types of the type args in optparse to strings, it fixes a problem observed in ATR-21339 See merge request !32529