Fix potential file corruption with partial writes
Merge branch 'hotfix'

Conflicts:
	CHANGELOG
	src/io/write_test.cpp
Why must these things be so hard to test?
Optimize string literals in refcounted strings
Remove CONSTSTR optimization for now
Bust the last evil union
Kill those dumb strings
wip to debug debugging (working better now! but incomplete)