BUG: fixed integer division issue in ODR.set_iprint.

Backport of gh-2924.

Fixed integer division in indices.

Included a call to set_iprint in TestODR.test_explicit

Fixed typo