Multiline comments preceeding items now printed in correct order

Issue summarized in the title. This is a pretty big issue and I don't know how it wasn't spotted earlier – I am fairly sure I introduced this bug a while ago. It appears in all styles when you have multiple comments preceding an item. (See the example tests, which are failing until this change.)