Fixing several problems with ARFF save & restore

Signed-off-by: Luiz Carlos Cavalcanti <cavalcanti.luiz@gmail.com>