Improve list expand/shrink support in smie-based modes

such as octave, ruby, css etc.