pub fn ensure_float2d(v: &Value) -> Result<&Vec<Vec<f64>>, String>
Ensure the value is a Float2DArray and return a reference to it.