Fix a few bugs with OPEN outputs
Add fstWriterSetRepackOnClose at FST initialisation