removed some global variables and generally made things more thread safe Rev: src/array.c:1.35 Rev: src/encode.c:1.21 Rev: src/fsort.c:1.10 Rev: src/fsort_template.h:1.4