Fix variant_to_double to convert int64 too

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>