Compute Kernel Functional Spatial Depth (KFSD), dispatching on Dim.
RKHS-based depth. Dim::One uses Simpson’s weights derived from argvals; Dim::Two uses
uniform weights over the flattened surface grid (matching the former kernel_functional_spatial_2d).