fix serialization for sparse features and serializableasciireader

thanks Christian Hentschel for the patch