baseconv: Fix a tricky bug.

When `ibase` is set before `obase`, `obase` is set in terms of `ibase`.