Implement writeDouble(). Passing 19/28 tests.