is there a way to use @njit AND 2d arrays of type np.object at the same time, to be more efficient?
a and "nan" are two 2d arrays of variable subarray-sizes(eac