Fixed bug preventing writing of singles (floats).