Fix some more things with exporting globals.

Allow matrices and scalars that start with "_". Switch to using
fgetmatrix/fput.. rather than matsave (help says not to use the later in
programs). Put noisily in the outputted .do files so that log is more
informative on errors.