Fixed crash when parsing abinit output.

Ron Cohen contributed a patch for when the typat line extends
to more than one line. Also includes misc. fixes.