Clean-up some of the reflowing logic.

Several code snippets weren't being reflown because the check saw an invalid indent in front of them. We also weren't taking into account the set of closing brackets when calculating if an element could exist on the current line.