gitignore: add TAGS
psfexAdaptors: fix scribbling for size differences

The prefs weren't properly scribbled on, since sets.size() may be
different from prefs.ncat, resulting in segfault.

Also put scribbling into an RAII struct to remove code duplication
(in the catch and outside).