unsafe fn get_dims<const NDIM: usize>(sexp: SEXP) -> [usize; NDIM]
Get dimensions from SEXP as array.
Caller must ensure SEXP has NDIM dimensions.