Can't duplicate crash on Linux when adding "type" into a Pascal file produced by `Menu->File->New with Template->program.pas`. Can you be more specific how to reproduce it.
The failure to compile appears to be something to do with your Pascal compiler setup, which is outside Geany.