Incorporate Remi's patch on php_gmagick_zval_to_double_array