Some more bugfixes

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
Replaced dtoa with double-conversion

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>