getOccurrencesAtPosition support for if/else keywords

I would rather fold these in the main loop.. you either expand the previous entry, or add a new one, based on your condition.