Added canwrite test for Kdb4 files
Fixed persisting bug with kdb4writer