Added support for multiple-line types.

This was a bug caused by SML types being too long to fit on the single
line. This is fixed now.