insertOrderedList: implement listifying

Apart from tests of issue #39, this CL passes all listifying tests.

PTAL
In Chromium, we can eliminate {} when both the conditional and the body are one-line.