Code cleanup of arithmetic coder.