Fix surprising and dismaying bug in horizontal scroll thingy.
Fix a reinitialization bug involving the codecs module.

This bug only ever manifested in unit tests, but was worrisome.