use global namespace for class IO naming conflict

Fixes #3143.