gamessformat.cpp: Add more elaborate keyword line wrapping

Wrap also at spaces in values if present, e.g., IFZMAT(1) array can have
spaces separating coordinates in that case the array will be wrapped at
80 characters if needed.
gamessformat.cpp: Fix some compiler warnings